#include "test.h"
#include "../UART/uart.h"

void print_cpsr(){
    unsigned int cpsr;

    __asm__(
            "mrs r0, cpsr\n"
            "mov %0, r0\n"
            :"=r"(cpsr)
            );

    printf("cpsr: %x \r\n", cpsr);
}

void print_val(char *str, unsigned int p){
    printf("%s %x\r\n", str, *(unsigned int *)p);
}